package org.train.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.Date;

@Data
@TableName("revenue_expenditure")
@JsonIgnoreProperties(ignoreUnknown = true, allowGetters = true)
public class RevenueExpenditurePo{
    @TableId(type = IdType.AUTO)
    private Integer id; // 收支编号
    private Integer projectId; // 项目编号
    private Double amount = 0.0; // 金额
    @TableField("column_type")
    private Integer type; // 支出类型
    @TableField("remarks")
    private String remark; // 备注
    @TableField("project_year")
    private Integer projectYear; // 年度
    @TableField("generation_date")
    private Date generateTime; // 产生日期

}
